#ifndef FUNCTION_HPP
#define FUNCTION_HPP
#include <iostream>
#include <vector>
#include <functional>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <fstream>
#include <numeric>

class Function {
public:
    // 纯虚函数，用于计算函数值
    virtual double operator()(double x) const = 0;
    
    // 虚函数，用于计算函数的导数值
    virtual double derivative(double x) const = 0;
};

#endif